/******************************************************************************
*FileName:lcd_display.c
*
*
*
*******************************************************************************/
/*
HISTORY:

V1.0 2012-05-11 22:16:30 Crengby Lee
Create the file and add functions

v1.1 2012-10-10 22:16:30 Crengby Lee

*/
//#include    <stdlib.h>
#include    "Nokia5110_Lcd.h"
#include	"ucos_ii.h"
#include	<stdio.h>
//#include    "printf.h"
#include 	"sys_lib.h"

static OS_STK       task_lcd_stk[TASK_LCD_STKSIZE];

void TaskLcd(void *pdata)
{

	pdata=pdata;

#if !INCLUDE_WDT
    OS_CPU_SysTickInit();
    Nokia5110_init();
#endif

	FOREVER{
	OSTimeDly(1000);
	GPIO_SetBits(GPIOC,GPIO_Pin_5);
	OSTimeDly(1000);
	GPIO_ResetBits(GPIOC,GPIO_Pin_5);
    //printf("LED task is running !!!\r\n");
	}
}
/*static  void tchardisplay(void *pdata)
{
    INT8U   x,y;
    INT8U   z;
    z=Lcd_FontNum(FONT58);
    while(1)
    {
        srand(6);
        x=rand();
        srand(z);
        y=rand();
        LCD_write_ASCII(y,x,&Font5x8,(INT8U *)pdata);
		printf("The char is %u at[%d,%d]\n\r",(INT8U *)pdata,x,y);
		OSTimeDly(OS_TICKS_PER_SEC);
		//printf("Now printf char is [%u]",(INT8U *)pdata);
		//OSTimeDly(100);
    }
}
*/

void keydisp_init(void)
{
    OSTaskCreate(TaskLcd,(void *)0,&task_lcd_stk[TASK_LCD_STKSIZE-1],TASK_PRI_LCD);
}






















